package com.atguigu.util.homework1;

import java.util.Scanner;

/**
 * @author caesar
 * @date 2025/7/4
 * @apiNote
 */
public class Calculatortest {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);

        System.out.print("请输入第一个整数：");
        int x = input.nextInt();

        System.out.print("请输入第二个整数：");
        int y = input.nextInt();

        //测试add等方法
        System.out.println("x+y=" + Calculator.add(x, y));
        System.out.println("x-y=" + Calculator.subtract(x, y));
        System.out.println("x*y=" + Calculator.multiply(x, y));
        System.out.println("x/y=" + Calculator.divide(x, y));
        System.out.println("x%y=" + Calculator.remainder(x, y));
    }

}
